package cn.wangyu.tcc.record.service;

import cn.wangyu.tcc.record.domain.TransactionalRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author wangyu
 * @version 1.0
 * @date 2022/5/23 22:44
 */
public interface TransactionalRecordService extends IService<TransactionalRecord> {

    /**
     * <p>描述: 添加
     * <p>开发者: wangyu
     * <p>时间: 2022/5/23 22:46
     *
     * @param record
     * @return void
     */
    TransactionalRecord add(TransactionalRecord record);

    /**
     * <p>描述: 获取
     * <p>开发者: wangyu
     * <p>时间: 2022/5/23 22:47
     *
     * @param xid
     * @return TransactionalRecord
     */
    TransactionalRecord getByXid(String xid);
}
